package com.shoe.service.impl;

import com.shoe.mapper.AandUCouMapper;
import com.shoe.service.AandUCouService;
import com.shoe.vo.AandUCouVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AandUCouServiceImpl implements AandUCouService {

    @Autowired
    AandUCouMapper aUCouMapper;

    @Override
    public List<AandUCouVo> selectAandUCouPage(Integer page, Integer limit, Integer userId) {
        return aUCouMapper.selectAandUCouPage(page, limit, userId);
    }

    @Override
    public List<AandUCouVo> selectAandUCou(Integer userId) {
        return aUCouMapper.selectAandUCou(userId);

    }

    @Override
    public int deleteAandUCou(Integer usercouponId) {
        return aUCouMapper.deleteAandUCou(usercouponId);
    }
}
